package com.dragon.framework.dto;

import java.util.List;

/**
 * Created by jinlong.hao on 16/5/24.
 */
public class PageDto<T>{
    /** 当前页码 */
    private int page;
    /** 每页多少条 */
    private int countPerPage;
    /** 总纪录数 */
    private int total;
    /** 返回的列表数据 */
    private List<T> listData;

    public PageDto(int page, int countPerPage, int total, List<T> listData) {
        this.page = page;
        this.countPerPage = countPerPage;
        this.total = total;
        this.listData = listData;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getCountPerPage() {
        return countPerPage;
    }

    public void setCountPerPage(int countPerPage) {
        this.countPerPage = countPerPage;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public List<T> getListData() {
        return listData;
    }

    public void setListData(List<T> listData) {
        this.listData = listData;
    }
}
